package cn.edu.scau.dormitory_management_system.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author djc
 * @date 2021/8/9
 * @time 10:55
 */

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class ReportDTO {
    private Integer addNumber;
    private Integer updateNumber;
    private Integer failure;

    public void incrAddNumber() {
        addNumber = addNumber + 1;
    }

    public void incrUpdateNumber() {
        updateNumber = updateNumber + 1;
    }

    public Integer getSumNumber() {
        return addNumber + updateNumber + failure;
    }
}
